﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Xejen.Commands.Models
{
    /// <summary>
    /// 员工登录的请求参数
    /// </summary>
    public class UserLoginInfoRequest : Request
    {
        /// <summary>
        /// 员工条码
        /// </summary>
        [JsonProperty("user_id")]
        [JsonPropertyName("user_id")]
        public string UserId { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [JsonProperty("password")]
        [JsonPropertyName("password")]
        public string Password { get; set; }
        /// <summary>
        /// 会话ID
        /// </summary>
        [JsonProperty("session_id")]
        [JsonPropertyName("session_id")]
        public string SessionId { get; set; }

        /// <inheritdoc cref="UserLoginInfoRequest"/>
        public UserLoginInfoRequest() { }
    }

    /// <summary>
    /// 员工登录的响应参数
    /// </summary>
    public class UserLoginInfoResponse : Response
    {
        /// <summary>
        /// 员工名称
        /// </summary>
        [JsonProperty("UserName")]
        [JsonPropertyName("UserName")]
        public string UserName { get; set; }

        /// <inheritdoc cref="UserLoginInfoResponse"/>
        public UserLoginInfoResponse() { }
    }
}
